#include <stdio.h>
// 鞍点
int main(int argc, char const *argv[])
{
    int a[3][4] = {
        {123, 1, -10, 918},
        {3, 9, 10, -83},
        {45, 16, 4, 299}};

    int max_row;
    int max_col;
    int row;
    int col;
    int i;
    int j;
    int k;
    for (int i = 0; i < 3; i++)
    {
        max_col = -9999;
        max_row = -9999;
        row = -1;
        col = -1;
        for (j = 0; j < 4; j++)
        {
            if (a[i][j] > max_row)
            {
                max_row = a[i][j];
                row = i;
                col = j;
            }
        }
        for (k = 0; k < 3; k++)
        {
            if (a[row][col] < a[k][col])
            {
                break;
            }
        }
        if (k >= 3)
        {
            printf("%d\n", a[row][col]);
        }
    }
    return 0;
}
